/**
 * Copyright (C), 2015-2018, 北京译泰教育科技有限公司
 * FileName: View
 * Author:   andy
 * Date:     18/1/28 下午6:42
 * Description: ${DESCRIPTION}
 * History:
 */
package org.smart4j.framework.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * 返回视图对象<br>
 *
 * @author andy
 * @version V1.0
 * @date 18/1/28 下午6:42
 */
public class View {

    private String path;

    private Map<String, Object> model;

    public View(String path) {
        this.path = path;
        model = new HashMap<String, Object>();
    }

    public View addModel(String key, Object value){
        model.put(key, value);
        return this;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Map<String, Object> getModel() {
        return model;
    }

    public void setModel(Map<String, Object> model) {
        this.model = model;
    }
}
